<!DOCTYPE html>
<head xmlns:v-bind="http://www.w3.org/1999/xhtml" >
    <meta charset="UTF-8">
    <title>demo11事件处理-v-on内联javascript</title>
  <script src="./js/vue.min.js"></script>

</head>

<body>
   <div id="app">
     <button v-on:click="say('hi')">Say hi</button>
     <button v-on:click.stop="say('what')">Say what</button>
     <input @keyup.shift="say(13)">
   </div>

</body>

<script type="application/javascript">
  var vm = new Vue({
    el: "#app",
    methods: {
      say:function (message) {
        alert(message);
      }
    }
  });
</script>
</html>
